<?php

namespace Xrfg\Core\Trading\Account\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Xrfg\Core\Trading\Account\Models\Recharge.
 *
 * @property int                                                                                     $id
 * @property int                                                                                     $user_id     用户ID
 * @property int                                                                                     $coin_id     币种ID
 * @property string                                                                                  $hash        区块链交易ID
 * @property float                                                                                   $number      充值数量
 * @property string                                                                                  $address     充值地址
 * @property string|null                                                                             $tag         地址标签
 * @property int|null                                                                                $status      充值状态: 0:未到账 1:已到账
 * @property \Illuminate\Support\Carbon|null                                                         $created_at  充值时间
 * @property \Illuminate\Support\Carbon|null                                                         $updated_at  到账时间
 *
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Recharge newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Recharge newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Recharge query()
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Recharge whereAddress($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Recharge whereCoinId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Recharge whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Recharge whereHash($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Recharge whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Recharge whereNumber($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Recharge whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Recharge whereTag($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Recharge whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Recharge whereUserId($value)
 * @mixin \Eloquent
 */
class Recharge extends Model
{
    protected $table = 'trading_recharges';

    /**
     * @var int 类编码
     */
    const CLASS_ID = 1;
    /**
     * @var int 操作编码：充值到账
     */
    const OP_DONE = 1;
}
